<?php
require_once("php_connect.php");
 $connexion = new PDO('mysql:host='.$PARAM_hote.';dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));

$tab=explode(",",$_POST["array"]);
$base=$_POST["base"];
$_id=$_POST["id"];

//$tab=array(5,11);
 foreach($tab as $toto){
	$res = $connexion->exec("DELETE FROM $base WHERE $_id = $toto");
		if($res === FALSE) 
		{ 
	  	  $return= false;
		} 
		else if($res === 0) 
		{ 
	  	   $return= false;
		} 
		else
		{ 
		    $return= true; 
		} 
 }
 echo $return;
?>